import Service from './$axios'
import { nailService } from '../config';
const appName = nailService
// 查询生产订单(父表)
export const selectList = (data) => {
    return Service({
        url: `${appName}/dingPush/selectData`,
        method: 'post',
        data
    })
}
// 新增、修改
export const add = (data) => {
    return Service({
        url: `${appName}/dingPush/add`,
        method: 'post',
        data
    })
}
// 删除
export const del = (data) => {
    return Service({
        url: `${appName}/dingPush/del?ids=${data}`,
        method: 'get',
    })
}
// 启用、停用
export const updateStatus = (data) => {
    return Service({
        url: `${appName}/dingPush/updateStatus`,
        method: 'post',
        data
    })
}
// 用户查询
export const selectUser = (data) => {
    return Service({
        url: `${appName}/dingPush/selectUser`,
        method: 'post',
        data
    })
}
// 钉钉推送测试
export const dingPushNews = (data) => {
    return Service({
        url: `${appName}/ding/dingPushNews`,
        method: 'post',
        data
    })
}


// 获取审批实例详情
export const approvalInstanceDetails = (data) => {
    return Service({
        url: `${appName}/demo/approvalInstanceDetails?processInstanceId=${data}`,
        method: 'get',
    })
}

// 特供信息_____________

// 特供机发起钉钉审批[26]
export const sendSpecialReportDD = (data) => {
    return Service({
        url: `${appName}/workOrder/sendSpecialReportDD`,
        method: 'post',
        data
    })
}
// 重新获取结果
export const reacquire = (data) => {
    return Service({
        url: `${appName}/callBackController/reacquire?${data}`,
        method: 'get'
    })
}